package org.example.blogger.model;

import lombok.Data;
import org.example.blogger.utils.DateUtils;

import java.util.Date;
@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Boolean isLoginUesr;
    private Date createTime;
    private Date updateTime;

    public String getCreateTime(){
        return DateUtils.dateFormat(createTime);
    }
}
